package dk.dashboardFP.interactionElementFramwork.buttonViews {
	import dk.dashboardFP.panels.ui.text.label.AbstractLabel;

	/**
	 * @author jk
	 */
	public class LabelButtonView extends AbstractButtonView {
		
		protected var _doLabel : AbstractLabel;
		protected var _nColorTweenTime : Number = 0.2;
		
		private var _uintOverColor : uint;
		private var _uintDefaultColor : uint;
		private var _nAlphaTweenTime : Number;
		private var _uintSelectedColor : Object;

		
		public function LabelButtonView() {
			super();
			createLabel();
			addChild(_doLabel);
		}
		
		private function createLabel() : void {
			_doLabel =get_doLabel(); 
		}				protected function get_doLabel() : AbstractLabel {
			return new AbstractLabel();
		}						public function get doLabel() : AbstractLabel {
			return _doLabel;
		}

		override public function mouseOver() : void {
			if (_uintOverColor) {
			}
		}

		override public function mouseOut() : void {
			if (_uintOverColor) {
			}
		}

		override public function focusIn() : void {
			super.focusIn();
		}

		override public function focusOut() : void {
			super.focusOut();
		}
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// select deselect
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

		override public function select() : void {
			super.select();
			if (_uintSelectedColor!=null) {
			}
		}

		override public function deSelect() : void {
			super.deSelect();
			if (_uintSelectedColor!=null) {
			}
		}

		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// hide show
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

		override public function hide() : void {
		}

		override public function show() : void {
		}		

		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// getter setter for label
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		public function get sFont() : String { 
			return _doLabel.sFont; 
		}
		public function set sFont(oNewValue:String) : void { 
			_doLabel.sFont= oNewValue;
		}
		
		public function get nSize() : Number { 
			return _doLabel.nSize; 
		}
		public function set nSize(oNewValue:Number) : void { 
			_doLabel.nSize= oNewValue;
		}
		
		public function get uintDefaultColor() : uint { 
			return _uintDefaultColor; 
		}
		public function set uintDefaultColor(oNewValue:uint) : void {
			_uintDefaultColor=oNewValue;
			_doLabel.uintColor = _uintDefaultColor;
		}

		public function get uintOverColor() : uint { 
			return _uintOverColor; 
		}
		public function set uintOverColor(oNewValue:uint) : void { 
			_uintOverColor=oNewValue;
		}
		
		public function get nKerning() : Number { 
			return doLabel.nKerning; 
		}
		public function set nKerning(oNewValue:Number) : void { 
			doLabel.nKerning=oNewValue;
		}
		
		public function get uintSelectedColor() : uint { 
			return _uintSelectedColor as uint; 
		}
		public function set uintSelectedColor(oNewValue:uint) : void { 
			_uintSelectedColor=oNewValue;
		}
		
		
	}
}
